package hcn.protocol.brandnew.zhenliao.jianyan;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;


/**
 * 检验类别和项目获取-响应消息(成功) - ODS_03050001_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class LabRequestQueryItemsResponse {

    /**
     * 申请项目分类列表
     */
    @XmlElementWrapper(name = "Datalists")
    @XmlElement(name = "Datalist")
    private List<Datalist> datalists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Item {

        /**
         * 检验项目代码
         */
        @XmlElement(name = "ItemCode")
        private String itemCode;
        /**
         * 检验项目名称
         */
        @XmlElement(name = "ItemName")
        private String itemName;
        /**
         * 标本类别代码
         */
        @XmlElement(name = "SampleTypeCode")
        private String sampleTypeCode;
        /**
         * 标本类别名称
         */
        @XmlElement(name = "SampleTypeName")
        private String sampleTypeName;
        /**
         * 项目单价
         */
        @XmlElement(name = "ItemPrice")
        private String itemPrice;
        /**
         * 项目数量
         */
        @XmlElement(name = "ItemCount")
        private String itemCount;
        /**
         * 项目组合类型
         */
        @XmlElement(name = "ComposeType")
        private String composeType;
        /**
         * 输入码(拼音码)
         */
        @XmlElement(name = "InputCode")
        private String inputCode;
        /**
         * 紧急标志
         */
        @XmlElement(name = "IsEmergency")
        private Boolean isEmergency;
    }

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Datalist {

        /**
         * 检验类别名称
         */
        @XmlElement(name = "ItemTypeName")
        private Byte itemTypeName;
        /**
         * 检验类别代码
         */
        @XmlElement(name = "ItemTypeCode")
        private Byte itemTypeCode;
        /**
         * 开单项目明细集合
         */
        @XmlElementWrapper(name = "Items")
        @XmlElement(name = "Item")
        private List<Item> items;
    }

}
